#ifndef CLOCK_H
#define CLOCK_H

#include "mcu_io.h"

/**
 * Main oscillator range
 */
typedef enum {
    /**
     * 1-20 MHz
     */
    CLOCK_OSCRANGE_1_20 = 0, 

    /**
     * 15-24 MHz
     */
    CLOCK_OSCRANGE_15_24 = 1
} CLOCK_OSCRANGE;

/**
 * Initialize system and peripheral clocks
 * @param osc_range Main oscillator frequency range
 * @param
 */
void CLOCK_init(
        CLOCK_OSCRANGE osc_range,
        uint32_t pll_multiplier,
        uint32_t pll_pre_divider,
);



#endif
